package com.zoe.spring.controller.frontend;

import com.zoe.spring.entity.dto.MainPageInfoDTO;
import com.zoe.spring.entity.dto.Result;
import com.zoe.spring.service.combine.HeadLineShopCategoryCombineService;
import lombok.Getter;
import org.zoeframework.core.annotation.Controller;
import org.zoeframework.core.inject.annotation.Autowire;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Zoe.Zhang
 * @date 2022/01/12
 * @description
 */
@Controller
@Getter
public class MainPageInfoController {
    @Autowire("HeadLineShopCategoryCombineServiceImpl")
    private HeadLineShopCategoryCombineService headLineShopCategoryCombineService;

    public Result<MainPageInfoDTO> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp) {
        return headLineShopCategoryCombineService.getMainPageInfo();
    }
}
